import { request } from '../utils/request';

export async function fetchFranList(params) {
  return request('adminapi/admin/getFranList', {
    method: 'POST',
    body: params,
  });
}

export async function fetchDetail(params) {
  return request('adminapi/admin/getFranInfo', {
    method: 'POST',
    body: params,
  });
}

export async function changeFranStatus(params) {
  return request('adminapi/admin/setFranSts', {
    method: 'POST',
    body: params,
  });
}

export async function addFran(params) {
  return request('adminapi/admin/addFranInfo', {
    method: 'POST',
    body: params,
  });
}

export async function editFran(params) {
  return request('adminapi/admin/setFranInfo', {
    method: 'POST',
    body: params,
  });
}
export async function fetchFranMember(params) {
  return request('adminapi/admin/getFranUsers', {
    method: 'POST',
    body: params,
  });
}
export async function fetchOrderRecord(params) {
  return request('adminapi/admin/getFranOrders', {
    method: 'POST',
    body: params,
  });
}
export async function exportOrder(params) {
  return request('userapi/user/getCouponDetail', {
    method: 'POST',
    body: params,
  });
}
